import { Component, OnInit } from '@angular/core';
import { UserService } from "../service/user.service";
import { User } from '../manager-system/hero';

@Component({
  selector: 'app-administration-staff-attendance',
  templateUrl: './administration-staff-attendance.component.html',
  styleUrls: ['./administration-staff-attendance.component.css']
})
export class AdministrationStaffAttendanceComponent implements OnInit {

  constructor(private userService: UserService) { }

  ngOnInit() {
  }

  getUserID() {
    return this.userService.sharedUser.username
  }

  getUserName() {
    return this.userService.sharedUser.name
  }

  getUserYearsHoliday() {
    return this.userService.sharedUser.annualLeave
  }

  getPosition() {
    return this.userService.sharedUser.position
  }

  getDepartment() {
    return this.userService.sharedUser.department
  }
  
}
